﻿<phone:PhoneApplicationPage
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:controls="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls"
    xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit"
    xmlns:sys="clr-namespace:System;assembly=mscorlib"    
    xmlns:toolkitPrimitives="clr-namespace:Microsoft.Phone.Controls.Primitives;assembly=Microsoft.Phone.Controls.Toolkit" 
    x:Class="PhoneInfo.Page.SoftSiting" toolkit:TiltEffect.IsTiltEnabled="True" 
    SupportedOrientations="Portrait" Orientation="Portrait"
    mc:Ignorable="d" d:DesignHeight="800" d:DesignWidth="480"
    shell:SystemTray.IsVisible="false"  Style="{StaticResource TransitionPageStyle}"
    xmlns:local="clr-namespace:PhoneInfo"
    >
    <!--演示 ApplicationBar 用法的示例代码-->
    <!--<phone:PhoneApplicationPage.ApplicationBar>
        <shell:ApplicationBar IsVisible="True" IsMenuEnabled="True">
            <shell:ApplicationBarIconButton IconUri="/Images/appbar_button1.png" Text="按钮 1"/>
            <shell:ApplicationBarIconButton IconUri="/Images/appbar_button2.png" Text="按钮 2"/>
            <shell:ApplicationBar.MenuItems>
                <shell:ApplicationBarMenuItem Text="菜单项 1"/>
                <shell:ApplicationBarMenuItem Text="菜单项 2"/>
            </shell:ApplicationBar.MenuItems>
        </shell:ApplicationBar>
    </phone:PhoneApplicationPage.ApplicationBar>-->
	<phone:PhoneApplicationPage.FontFamily>
		<StaticResource ResourceKey="PhoneFontFamilyNormal"/>
	</phone:PhoneApplicationPage.FontFamily>
	<phone:PhoneApplicationPage.FontSize>
		<StaticResource ResourceKey="PhoneFontSizeNormal"/>
	</phone:PhoneApplicationPage.FontSize>
	<phone:PhoneApplicationPage.Foreground>
		<StaticResource ResourceKey="PhoneForegroundBrush"/>
	</phone:PhoneApplicationPage.Foreground>
    
    <!--LayoutRoot 是包含所有页面内容的根网格-->
    <Grid x:Name="LayoutRoot"  Background="{Binding Source={StaticResource Theme}, Path=cuTheme.TextBrush}">
        
    	<controls:Pivot Height="800" Margin="0,0,0,0" Grid.Row="1" Title="" VerticalAlignment="Top" Width="480">
            <controls:PivotItem >
                <controls:PivotItem.Header>
                    <TextBlock x:Name="mianTitle" Text="设置"   Margin="10,20,10,0"  Foreground="{Binding Source={StaticResource Theme}, Path=cuTheme.TitleBrush}"  FontSize="40"/>
                </controls:PivotItem.Header>
                <ScrollViewer>
                <StackPanel>
                    <toolkit:ListPicker Header="主题" x:Name="them"  FontSize="18"
					                    SelectionChanged="them_SelectionChanged" Loaded="them_Loaded" 
										Margin="20,0,0,0" BorderThickness="0" Width="294" 
										HorizontalAlignment="Left" VerticalAlignment="Top" 
										Style="{StaticResource ListPickerStyle}" Background="Transparent" 
										Foreground="#FF7D7D7D" BorderBrush="{x:Null}" >
                            <sys:String>黑</sys:String>
                        	<sys:String>亮</sys:String>
                     </toolkit:ListPicker>
                    <toolkit:ListPicker   Header="清除缓存" Tap="ListPicker_MouseLeave"  FontSize="18"
					                      Margin="20,20,0,0" BorderThickness="0" HorizontalAlignment="Left" 
										  VerticalAlignment="Top" Width="123" Style="{StaticResource ListPickerStyle}" 
										  Foreground="#FF7D7D7D" Background="{x:Null}" BorderBrush="{x:Null}">
                            <toolkit:ListPickerItem Tap="ListPicker_MouseLeave">
                                <sys:String>点击清除缓存</sys:String>
                            </toolkit:ListPickerItem>
                                               
                     </toolkit:ListPicker>
                        <toolkit:ListPicker Header="账号管理"  Margin="20,20,0,0" BorderThickness="0" Width="217" HorizontalAlignment="Left" VerticalAlignment="Top" RenderTransformOrigin="0.5,0.5"
									    Style="{StaticResource ListPickerStyle}" Background="Transparent" 
										Foreground="#FF7D7D7D" FontSize="18" BorderBrush="Black">
                            <toolkit:ListPickerItem  Tap="ListPicker_MouseLeave_user" >
                                <sys:String>账号登陆，管理登陆账号</sys:String>
                            </toolkit:ListPickerItem>
                    </toolkit:ListPicker>
                        <toolkit:ToggleSwitch  x:Name="Pictrue" FontSize="18" Content="不加载资讯图片为您节省流量"  Header="无图模式" SwitchForeground="#31b2e7"  
                                               Checked="Pictrue_Checked"  Unchecked="Pictrue_Unchecked" Style="{StaticResource ToggleSwitchStyle}" Height="86" Margin="20,20,0,0"/>
                        <toolkit:ToggleSwitch Header="自动加载" x:Name="AutoLoadNextPage"  IsChecked="true"    SwitchForeground="#31b2e7" 
                        	                  Checked="AutoLoadNextPage_Checked" Content="自动加载下一页的内容"
                        	                   Unchecked="AutoLoadNextPage_Unchecked" FontSize="18"
											   Style="{StaticResource ToggleSwitchStyle}" Height="87" Margin="20,20,0,0"/>
                        <toolkit:ToggleSwitch Header="退出提示" x:Name="ReturnRrompt" SwitchForeground="#31b2e7" 
                                              IsChecked="true" Checked="ReturnRrompt_Checked" FontSize="18"
											  Content="提出提示是否要退出应用程序" Unchecked="ReturnRrompt_Unchecked" Style="{StaticResource ToggleSwitchStyle}" Margin="20,20,0,0">
                      
                        </toolkit:ToggleSwitch>
                        <toolkit:ToggleSwitch Header="自动清理缓存" x:Name="ReturnClear"   Checked="ReturnClear_Checked" 
                                              Unchecked="ReturnClear_Unchecked" Content="提出时清理缓冲区中数据"
											  SwitchForeground="#31b2e7" FontSize="18"
											  Style="{StaticResource ToggleSwitchStyle}" Margin="20,20,0,0">
                        </toolkit:ToggleSwitch>
                    </StackPanel>
				</ScrollViewer>
            </controls:PivotItem>
    	</controls:Pivot>
    </Grid>
</phone:PhoneApplicationPage>
